﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Algorithms_10.Tools
{
    public class CoordinateFinder
    {

        public CoordinateFinder()
        {
        }

        public Point[] FindCornerCoordinates(Bitmap bmp, bool isBinair)
        {
            Bitmap source;

            if (isBinair)
            {
                source = new Bitmap(bmp);
            }
            else
            {
                source = Filters.Binair.RunBitmapAlgorithm(bmp);
            }

            ImageScanner scanner = new ImageScanner();

            return scanner.ScanBottom(bmp, Color.White, Color.Black);
        }

    }
}
